package com.wsc.personalblog.DTO;

import com.wsc.personalblog.entity.LeaveAMessage;
import com.wsc.personalblog.entity.User;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
@ApiModel("留言扩展类")
public class LeaveAMsgDTO extends LeaveAMessage {
    @ApiModelProperty("留言用户名")
    private String userName;
    @ApiModelProperty("留言点赞信息")
    private LikeInfoDTO likeInfoDTO;
    @ApiModelProperty("子留言信息")
    private List<LeaveAMsgDTO> children = new ArrayList<>();
    @ApiModelProperty("子留言总数")
    private int msgCount;
    @ApiModelProperty("父评论用户name")
    private String pName;
    private String userAvatar;

}
